﻿@model Common.Comment

@{
    ViewBag.Title = "Comment";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Comment</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Comment</legend>

        <div class="editor-label">
            <label>Please Sir Enter your Comment on this handsome device :P</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserComment)
            @Html.ValidationMessageFor(model => model.UserComment)
        </div>
        <p>
            <input id="PostComment" type="submit" value="Post"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Product", "Details")
</div>
